package com.server;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.beans.Admin;
import com.mapper.AdminMapper;

@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;
    //根据id查询
    public Admin getAdminById(int AdminId) {
        return adminMapper.selectById(AdminId);  // 使用 selectById 方法
    }
    
}